package Factory;

import DAO.*;
import java.sql.Connection;
import Commun.Connexion;

public class PostgreDAOFactory extends DAOFactory{

    private Connection conn;

    @Override
    public DAO getMasterDAO() {
        return new MasterDAO(conn);
    }

    @Override
    public DAO getEnseignementDAO() {
        return new EnseignementDAO(conn);
    }

    @Override
    public DAO getEtudiantDAO() {
        return new EtudiantDAO(conn);
    }

    @Override
    public DAO getInscriptionDAO() {
        return new InscriptionDAO(conn);
    }

}
